//基本类型
var name1 = "sjf";
var age1 = 18; //自动推断
var ok = true;
var nothing = null;
var any = "rf";
var unknown = 66;
var notDefined = undefined;
console.log(typeof name1);
console.log(typeof age1);
console.log(typeof ok);
function changeNameToUpper1(ad) {
    var a = ad.toUpperCase();
    return a;
}
var xx = function (a, b) {
    return a + b;
};
console.log("xx:" + xx(1, 2));
var mm = function (a, b) {
    return a + b;
};
console.log("mm:" + mm(5, 6));
var yy = function (a, b) {
    return a + b;
};
console.log("yy:" + yy(3, 4));
var kk = function (n) {
    return 8;
};
// //数组，元组
// const list1:number[]=[1,2,3]
// const list2:Array<string>=['a','b']
// const tuple:[string,number,boolean]=['sad',66,true]
// console.log(list2[1])
// console.log(tuple[1])
// //枚举
// enum Color {Red=1,Green,Pink}
// const c:Color=Color.Pink
// console.log(c)
